"""
i = 1
while i < 10:
    j = 1
    while j <= i:
        print("%d*%d=%2d" % (j, i, j * i), end=' ')
        j = j + i
    print(" ")
    i = i + 1
"""
for i in range(1, 10):
    for j in range(1, i + 1):
        print(f'{j}*{i}={j*i}', end=' ')
    print()
